import React, { Component } from 'react';
import { connect } from 'react-redux';
import {fromJS} from 'immutable';
import InforBox from './components/inforBox';
import List from './components/list';
import Quit from '../../common/quit'
class Person extends Component {
    render() {
        let { userInfor } = this.props;
        return (<>
            <InforBox {...this.props} userInfor={userInfor} />
            <List {...this.props} />
            <Quit/>
        </>
        );
    }
}
const mapStateToProps = (state, ownProps) => {
    state= fromJS(state);
    return {
        userInfor: state.getIn(["login", 'userInfor']).toJS(),
    };
};
const mapDispatchToProps = (dispatch, ownProps) => {
    return {};
};
export default connect(mapStateToProps, mapDispatchToProps)(Person);
